package com.rchat.pocmini.db;

import java.util.ArrayList;
import java.util.Collection;

/**
 * Created by ljd on 2017/3/16.
 */

public class CollectionsHelper {
    public static <T> boolean isEmpty(T[] array) {
        return array == null || array.length == 0;
    }

    public static boolean isEmpty(Collection collection) {
        return collection == null || collection.size() == 0;
    }

    public static <T> ArrayList<T> newArrayList() {
        return new ArrayList<T>();
    }
}
